package com.ssm.gbq.mapper;


import com.ssm.gbq.model.FlowerType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowerTypeMapper {
    /**
     * 分页查询
     */
    List<FlowerType> showFlowerTypeByPage(@Param("flowerType") FlowerType flowerType, @Param("currentPage")int currentPage, @Param("pageSize")int pageSize)throws Exception;


    /**
     * 通过id查询
     */
    FlowerType getFlowerTypeById(Integer id);

    /**
     * 修改
     */
    int updateFlowerType(FlowerType flowerType)throws Exception;

    /**
     * 添加
     */
    int addFlowerType(FlowerType flowerType)throws Exception;

    /**
     * 根据id删除
     */
    int delFlowerType(Integer id)throws Exception;

    /**
     * 查询数据条数
     */
    int getFlowerTypeCount(@Param("flowerType")FlowerType flowerType);

    /**
     * 批量删除
     */
    int deleteFlowerTypes(List<Integer> ids);

    /**
     * 删除判断
     */
    int judgeType(List<Integer> fid);


}
